
/*

Design Pattern Automation Toolkit.
Application to create applications with emphasis on Design patterns.
And support for round trip engineering.
Copyright (C) 2004 Vineeth Neelakant. nvineeth@gmail.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/
using System;
using System.Collections;
using System.Reflection;
using DesignPatternDefinitions;

namespace DotNetReverseEngineering
{
	/// <summary>
	/// Description of RevEnggParameterInfo.
	/// </summary>
	public class RevEnggParameterInfo : IParameter
	{
		
		ParameterInfo pinfo;
		Hashtable metaInfo;
		public RevEnggParameterInfo(ParameterInfo info)
		{
			this.pinfo = info;
			this.metaInfo=new Hashtable();
			this.InitMetaInfo();
		}
		
		private void InitMetaInfo()
		{
			string minfo="";
			if(this.pinfo.IsIn)minfo+="in";
			if(this.pinfo.IsOut)minfo+=" "+"out";
			
			this.metaInfo.Add(RevEnggClassInfo.csharp,minfo);
		}
		public string GetUMLRepresentation(){ return null;}
		public string ParameterName
		{
			get
			{
				return this.pinfo.Name;
			}
			
			set{}
		}
		public string ParameterType
		{
			get{ return this.pinfo.ParameterType.Name;}
			set{}
		}
		public string Summary
		{
			get{return string.Empty;}
			set{}
		}
		
		public string GetMetaInfo(string language)
		{
			return null;
		}
		
		public void SetMetaInfo(string meta)
		{
		
		}
		public Hashtable GetAllMetaInfo()
		{
			return this.metaInfo;
			
		}
	}
}
